package com.douqu.game.auth.database.model;

import java.util.Date;
import java.util.Objects;

public class ServerTaskModel {

    private int id;

    /**
     * Android
     * IOS
     */
    private String type;

    private Date startTime;

    private int serverId;

    private String optionPerson;

    private Date createTime;

    public ServerTaskModel(){

    }

    public ServerTaskModel(int id){
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public int getServerId() {
        return serverId;
    }

    public void setServerId(int serverId) {
        this.serverId = serverId;
    }

    public String getOptionPerson() {
        return optionPerson;
    }

    public void setOptionPerson(String optionPerson) {
        this.optionPerson = optionPerson;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ServerTaskModel that = (ServerTaskModel) o;
        return Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }

    @Override
    public String toString() {
        return "ServerTaskModel{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", startTime=" + startTime +
                ", serverId=" + serverId +
                ", optionPerson='" + optionPerson + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}